<extend name="Base/common"/>
<block name="style">
  <link  rel="stylesheet"  href="__PUBLIC__/Wap/css/css.css">
</block>
<block name="body">
	 <body  style="background:#f6f6f8;">
</block>

<block name="content">
  <section  class="wrap">
    <section  class="address">
     <div  class="addr_info">
    	<form id="form1" action="javascript:;" method="post">
    	<p  class="tips">退货信息</p>
        <ul>
    	 	<li><label  class="lb">退货数量</label><input  id="return_count"  class="ipt" type="text" placeholder="请输入退货数量"></li>
			<li><label  class="lb">退货理由</label><textarea  id="return_des"  class="ipt" type="text"></textarea></li>
    	</ul>
    	</form>
     </div>
     <div  class="save_opt">
    	<a  id="oneSaveAddr"  href="javascript:submit1();"  title="保存"  class="chk_btn"  style="">保存</a>
     </div>
      <div style="margin-top: 6rem;">
     </div>
     </section>

    </section>

</block>


<block name="footer">
	<div class="footer" style="bottom: 0px;">
	     <ul>
	         <li class="f_home"><a href="{:U('Index/index')}" title="首页"><i class="icon iconfont">&#xe61c;</i>首页</a></li>
	         <li class="f_whole"><a href="{:U('Public/introduction')}" title="竞价介绍"><i class="icon iconfont">&#xe627;</i>竞价介绍</a></li>
	         <li class="f_personal"><a href="{:U('Agent/profile')}" class="hover" title="个人中心"><i class="icon iconfont">&#xe61e;</i>个人中心</a></li>
	     </ul>
	 </div>
</block> 


<block name="script">
 <script type="text/javascript">
	function submit1(){	    
    	var form_input = document.getElementById("form1");
    	var return_count = form_input['return_count'].value;
		var return_des = form_input['return_des'].value;
		if (!return_count) {
			alert('请输入退货数量！');
			return false;
		}
	
        	$.post("{:U('submitReturnOrder',array('order_id'=>I('get.order_id')))}",{return_count:return_count,return_des:return_des},function(data){
                  if(data.status==1){
                    alert(data.info);
                     window.location.href=data.url;
                  }else{
                     alert(data.info);
                  }

        	});
    }
 </script>
</block>
